package com.cloudkinto.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2023-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_track_bill")
public class OrderTrackBillDo extends Model<OrderTrackBillDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 原快递单号
     */
    @TableField("track_number")
    private String trackNumber;

    @ApiModelProperty("账期")
    private String dateStr;

    /**
     * 日期
     */
    @TableField("date")
    private Date date;

    /**
     * 运费合计
     */
    @TableField("track_amount")
    private BigDecimal trackAmount;

    /**
     * 代引手数料
     */
    @TableField("other_amount1")
    private BigDecimal otherAmount1;

    /**
     * 保険料
     */
    @TableField("other_amount2")
    private BigDecimal otherAmount2;

    /**
     * 中継料
     */
    @TableField("other_amount3")
    private BigDecimal otherAmount3;

    /**
     * 合算立替料金額
     */
    @TableField("other_amount4")
    private BigDecimal otherAmount4;

    /**
     * 合算諸料金金額
     */
    @TableField("other_amount5")
    private BigDecimal otherAmount5;

    /**
     * 消費税 运费的 10% 小数点不保留
     */
    @TableField("tax_fee")
    private BigDecimal taxFee;

    /**
     * 个数 黑猫 1个 佐川可能多个 
     */
    @TableField("count")
    private Integer count;

    @TableField("summary")
    private String summary;

    @TableField("track_id")
    private Long trackId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("order_id")
    private Long orderId;

    /**
     * 订单类型 output 一件代发 fbaOutput 退货单 back
     */
    @TableField("order_type")
    private String orderType;

    @TableField("import_by")
    private Long importBy;

    @TableField("import_time")
    private Date importTime;

    /**
     * 匹配方式 auto 自动 manual 手动
     */
    @TableField("match_mode")
    private String matchMode;

    @TableField("match_by")
    private Long matchBy;

    @TableField("match_time")
    private Date matchTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
